package object;

public class Bigstudent extends Student{
    String profession;
    public  Bigstudent(String name,String num,String sex,String profession){
        super(name, num, sex);
        this.profession  = profession;
    }
    public boolean equals(Bigstudent stu){
        boolean res = false;
        if(this.name. equals(stu.name)){
            if(this.num.equals(stu.num)){
                if(this.sex.equals(stu.sex)){
                    if (this.profession.equals(stu.profession)){
                        res = true;
                    }
                }
            }
        }
        return res;
    }
}
